#include<stdio.h>

int eat_peach(int day)
{
    int rs = 0;
    if(day==10)
    {
        rs = 1;
        printf("day:%d  rs:%d\n",day,rs);
    }
    else
    {
        rs = (eat_peach(day+1) + 1) * 2;
        printf("day:%2d  rs:%d\n",day,rs);
    }
    return rs;
}

void main()
{
    eat_peach(1);
}
